package cn.hill4j.tool.spring.ext.iop;

import org.springframework.cloud.context.named.NamedContextFactory;

/**
  * ClassName: IopClientSpecification
  * Description: IopClient命名空间容器配置信息
  * @author hillchen
  * Date: 2023/8/12
  * @version: 1.0
  */
public class IopClientSpecification implements NamedContextFactory.Specification{
    /**
     * 命名空间名称
     */
    private String name;
    /**
     * 命名空间容器配置类
     */
    private Class<?>[] configuration;

    @Override
    public String getName() {
        return name;
    }

    /**
     * @author hillchen
     * Description: 命名空间名称
     * Date: 2023/8/12 23:35
     * @param name 命名空间名称
     **/
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Class<?>[] getConfiguration() {
        return configuration;
    }

    /**
     * @author hillchen
     * Description: 命名空间容器配置类
     * Date: 2023/8/12 23:36
     * @param configuration 命名空间容器配置类
     **/
    public void setConfiguration(Class<?>[] configuration) {
        this.configuration = configuration;
    }
    /**
     * @author hillchen
     * Description: 构造方法
     * Date: 2023/8/12 23:36
     **/
    public IopClientSpecification() {
    }
    /**
     * @author hillchen
     * Description: 构造方法
     * Date: 2023/8/12 23:37
     * @param name 命名空间名称
     * @param configuration 命名空间容器配置类
     **/
    public IopClientSpecification(String name, Class<?>[] configuration) {
        this.name = name;
        this.configuration = configuration;
    }
}
